package com.manager.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName(value ="update")
public class UpdateDto {

    @ExcelProperty(value = "跟进内容")
    @TableField("content")
    @ColumnWidth(20)
    private String content;

    @ExcelProperty(value = "跟进时间")
    @TableField("update_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ColumnWidth(20)
    private Date updateTime;

    @ExcelProperty(value = "跟进人")
    @ApiModelProperty(value = "id")
    @TableField("update_person")
    @ColumnWidth(20)
    private String updatePerson;
}
